Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS updates to attachment type #1325

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

JS updates to attachment type #1325

wants to merge 13 commits into from

Conversation

isahers1
Copy link
Contributor

No description provided.

@isahers1 isahers1 changed the title fix: allow path for attachments in python JS updates to attachment type Dec 11, 2024
}),
});
// eslint-disable-next-line no-instanceof/no-instanceof
if (content instanceof Blob) {
Copy link
Collaborator

@jacoblee93 jacoblee93 Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait sorry why do we need this vs. just accepting UInt8Array again?

I think the content typing doesn't include Blob here?

I know I said earlier we shouldn't do this - but I wonder if there's a way we can accept a Node Buffer here. Will talk to you in a sec.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - can this piggyback off the new method you created below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because attachment could be a Blob now (from you: https://langchain.slack.com/archives/D076HL2E77B/p1733946087301879)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants